<include path="header" /> 
    <div class="doing">
        <form action="/doing/add" method="post" onsubmit="update_doing($('#doing-input')); return false;">
        <div>
            <textarea id="doing-input" rows="2"></textarea>
            <script>ibody(document.getElementById('doing-input'));</script>
        </div>
        <div class="desc">
            <label id="char-num"><span>发布当前的状态</span></label><input type="submit" class="button" value="发布">
        </div>
        </form>
    </div>
 	<div class="box">
    	<div class="notice">
        	<ul>
            	<li>
                	这里是通知部分，暂时还未开发
                </li>
            </ul>
        </div>
    </div>
    <div class="box">
    	<div class="feed">
        	<ul id="feed-ul">
            <? foreach($feeds as $item){ ?>
            	<li>
                	<div class="avatar"><img src="<?=get_avatar($item['user_id'])?>" width="50"></div>
                    <div class="feed-body">
                    	<a href="javascript:void(0);"><?=$item['username']?></a>&nbsp;:&nbsp;<?=$item['message']?></div>
                    <div class="func" feedid="<?=$item['feed_id']?>" state="0"><a href="#">加标签</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="#">分享</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="javascript:void(0);" id="a<?=$item['model_id']?>" onclick="unfoldComment(<?=$item['model_id']?>)" class="folded">评论<? if(intval($item['reply_count']) > 0){ echo "(".$item['reply_count'].")"; } ?></a></div>
                    <div class="comment" id="cts<?=$item['model_id']?>">		                
                       
                    </div>
                </li>
            <? } ?>
            	<li class="more-comment" id="more-li"><div><input id="count_this" type="hidden" value="0"><a id="getmore" href="javascript:void(0);" onclick="moreComment();">查看更多</a></div></li>
           </ul>
        </div>
    </div>
<include path="footer" />
